//
//  YYLMainViewController.m
//  YYLSport
//
//  Created by yangyinglei on 2017/4/21.
//  Copyright © 2017年 yangyinglei. All rights reserved.
//

#import "YYLMainViewController.h"
#import "YYLControlController.h"
#import "YYLSportTrack.h"

@interface YYLMainViewController ()

@property (nonatomic, strong) YYLControlController *trackVc;
@property (nonatomic, strong) UIViewController *controlVc;

@end

@implementation YYLMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
}
- (IBAction)startTrackingAction:(UIButton *)sender {
    //创建运动轨迹模型
    YYLSportTrack *track = [[YYLSportTrack alloc] initWithSpotrType:sender.tag withSportState:SportStateContinue];
    //创建轨迹控制器
    self.trackVc = [[YYLControlController alloc] init];
    _trackVc.track = track;
    [self presentViewController:self.trackVc animated:YES completion:^{
        
    }];
    
    
    
}

@end
